/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package core;

/**
 *
 * @author Jorge
 */
public interface IServerCallBack<K, V> {

    void onError(Exception e);

    void onFinish();

    void onFinishClient(ProtocolSD protocolSD);

    void onFinishConnect();

    void onNewResult(K key, V v);

    void onReadAllArguments(ProtocolSD protocolSD);

    void onReadArgument(byte[] data, ProtocolSD protocolSD);

    void onReadArgumentSize(int size, ProtocolSD protocolSD);

    void onReadHeader(int operation, int numArgs, ProtocolSD protocolSD);

    void onWriteComplete(ProtocolSD protocolSD);

    public void onReadParcialParam(byte[] readedBytes, int offset, int limit);

}
